package pCloud.message;

import java.io.Serializable;

/**
 * Represent a message sent/received as the result of a policy management
 * operation (adding and removing policies)
 * 
 */
public class PolicyManagementRequest implements Serializable {
	public static final int ADD = 1;
	public static final int REMOVE = 0;
	public static final int QUERY = 2; 
	
	int type;

	String dataId; 
	
	// in case of adding , content is a policy file. When removing,
	// content is the file index.
	Object content;

	public PolicyManagementRequest(int type, String dataId, Object content) {
		this.type = type;
		this.content = content;
		this.dataId = dataId;
	}

	public int getType() {
		return this.type;
	}

	public Object getContent() {
		return this.content;
	}
	
	public String getDataId(){
		return this.dataId;
	}
}
